package com.sailfish.springbootdemo.service.db2;

import com.sailfish.springbootdemo.pojo.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.io.IOException;

public interface S3UploadFileService {
    String uploadFile(String directory, MultipartFile uploadFile);

    String uploadFile2(String directory, File uploadFile);

    String getImageBase64FromUrl(String imageUrl);

    String getImageBase64FromUrl2(String imageUrl, HttpServletRequest request);

    Result downloadS3FileToBase64(String s3Url, String newFileName);
}
